package com.itheima.ydd.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.ydd.common.R;
import com.itheima.ydd.dto.PageInfo;
import com.itheima.ydd.pojo.YddLink;
import org.springframework.http.ResponseEntity;

public interface YddLinkService extends IService<YddLink> {

    ResponseEntity<R<PageInfo<YddLink>>> findByPage(String type, String page, String limit);

    ResponseEntity<R<String>> add(YddLink yddLink);

    ResponseEntity<R<String>> del(Integer id);

    ResponseEntity<R<String>> updateLink(YddLink yddLink);

    ResponseEntity<R<YddLink>> rowInfo(Integer id);

}
